package com.cy.observer;

/**
 * <br>@class: Test
 * <br>@description: 观察者
 * <br>@author: cy
 * <br>@date: 2020-03-28 21:56:03
 * <br>@version: 1.0
 * <br>
 * <br>@since: (版本) 作者 时间 注释
 */
public class Test {
    public static void main(String[] args) {
        ConcreteSubject concreteSubject = new ConcreteSubject("A计划");
        ConcreteObserver mark = new ConcreteObserver(concreteSubject, "麦克");
        ConcreteObserver lux = new ConcreteObserver(concreteSubject, "露西");
        concreteSubject.notifyObservers();
        concreteSubject.notifyObservers("开始行动");
    }
}
